<extend name="Index::index" />
    <block name="table">
        <!-- 左菜单区域结束-->

        <!--右内容区域-->
        <div class="layout-content">

            <div class="page-title">电影管理</div>

            <div class="content-top">
                <ul class="top-nav">
                    <li class="active"><span>电影列表</span></li>
                </ul>
                <div class="clearfix"></div>
            </div>


            <!--content-main start-->
            <div class="container-fluid content-main">
                <div class="row">
                    <div class="col-md-12">

                        <!--<div class="alert alert-info">
                            <i class="icon-info-sign"></i> 提示信息提示信息提示信息提示信息提示信息提示信息
                        </div>-->

                        <div class="hidden ui-tips bg-info">
                            <span class="icon glyphicon glyphicon-info-sign"></span>
                            <span>提示信息提示信息提示信息提示信息提示信息提示信息。</span>
                        </div>


                        <form action="{:U(index)}" method="get" class=" form-inline form-search mt15">
                            <div class="form-group">
                                <label>关键字搜索</label>
                                <input type="text" placeholder="输入电影的名字" class="form-control input-sm" name="name"/>
                            </div>
                            <button type="submit" class="btn btn-success btn-sm">
                                <span class="glyphicon glyphicon-search"></span> 搜索
                            </button>

                        <!--    <div class="form-group">
                                <label>等级</label>
                                <select class="form-control input-sm">
                                    <option value="">&#45;&#45;请选择&#45;&#45;</option>
                                    <option value="0">未评级</option>
                                    <option value="1">H</option>
                                    <option value="2">A</option>
                                    <option value="3">B</option>
                                    <option value="4">C</option>
                                    <option value="5">N</option>
                                </select>
                            </div>
-->
                        <!--    <div class="form-group">
                                <label>车系</label>
                                <select class="form-control input-sm">
                                    <option value="">全部</option>
                                </select>
                                <select class="form-control input-sm">
                                    <option value="">全部</option>
                                </select>
                            </div>-->


                           <!-- <div class="form-group">
                                <label>日期</label>
                                <input type="text" size="8" class="form-control input-sm"/> 至 <input
                                    class="form-control input-sm" type="text" size="8"/>
                            </div>-->

                            <!--<div class="form-group">
                                <label>销售顾问</label>
                                <select class="form-control input-sm">
                                    <option value="">&#45;&#45;请选择-</option>
                                </select>
                            </div>-->

                           <!-- <div>
                                <button type="submit" class="btn btn-success btn-sm">
                                    <span class="glyphicon glyphicon-search"></span> 搜索
                                </button>
                                &lt;!&ndash;<a class="btn btn-default btn-sm">
                                    <span class="glyphicon glyphicon-repeat"></span> 全部</a>&ndash;&gt;
                            </div>-->
                        </form>

                        <div class="mt15 pr15">
                            <!--直接跳转到当前文件下的creat.html文件-->
                            <a href="create.html" class="btn btn-sm btn-success pull-right"><span
                                    class="glyphicon glyphicon-plus"></span> 添加电影</a>

                            <div class="clearfix"></div>
                        </div>

                        <table class="table table-hover mt15">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>电影名</th>
                                <th>电影图片</th>
                                <th>上映时间</th>
                                <th>电影时长</th>
                                <th>语言</th>
                                <th>标签</th>
                                <th>状态</th>
                                <th width="120">操作</th>
                            </tr>
                            </thead>
                            <foreach name="list" item="val">
                            <thead>
                            <tr>
                                <th>{$val['id']}</th>
                                <th>{$val['name']}</th>
                                <th><img src="__PUBLIC__/upload/{$val['cover']}" width="130" height="60" alt=""></th>
                                <th>{$val['release_at']}</th>
                                <th>{$val['long']}</th>
                                <th>{$val['language']}</th>
                                <th>{$val['tags']}</th>
                                <th>{$val['status']}</th>
                                <!--直接跳转到当前文件下的update.html文件-->
                              <th width="120">  <a href="update.html?id={$val['id']}">修改</a></th>
                            </tr>
                            </thead>
                            </foreach>
                        </table>

                        <div class="pull-right">
                            {$show}
                            <!-- <span>共 100 条记录 </span>
                             <span>每页 20 条</span>
                             <span class="pagination">
                                 <span class="prev-page disabled">上一页</span>
                                 <span class="active">1</span>
                                 <a href="">2</a>
                                 <a href="">3</a>
                                 <a href="" class="next-page">下一页</a>
                             </span>-->
                        </div>
                        <div class="clearfix"></div>

                    </div>
                </div>

            </div>
            <!--content-main end-->

        </div>
        <!--右内容区域结束-->

        <div class="clearfix"></div>
        </div>
        </div>
        </section>

    </block>
